package com.iot.mapper;

import com.iot.pojo.MRef;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DRefMapper {
    public List<MRef> getRole(int appId);
    public List<MRef> getPost(int appId);
    public List<MRef> getProvince();
    public List<MRef> getCity(int provinceId);
    public List<MRef> getArea(@Param("cityId") int cityId);
    public List<MRef> getProvinceById(@Param("provinceId") int provinceId);
    public List<MRef> getCityById(@Param("provinceId") int provinceId, @Param("cityId") int cityId);
    public List<MRef> getDeviceProtocol();
    public List<MRef> getDeviceType();
    public List<MRef> getDeviceStatus();
    public List<MRef> getDeviceScale(Map<String, Object> map);

    public List<MRef> getSite(@Param("regionId") int regionId, @Param("appId") int appId);
    public List<MRef> getRegion(@Param("areaId") int areaId, @Param("appId") int appId);
    public List<MRef> getLine(@Param("siteId") int siteId, @Param("appId") int appId);
    public List<MRef> getEmp(Map<String, Object> map);

    public List<MRef> getWarnLevel();
    public List<MRef> getWarnType(int typeId);

    public List<MRef> getWorkStatus();

    public List<MRef> getWorkType();
    public List<MRef> getSensor(int typeId);
}
